{* workarounds for old formatted messageStack messages *} {block name="alert_message"} {assign var="errorImageName" value=$message|regex_replace:"/(.+?)([a-z]+?)(\.gif.+)/s":"\\2"} {if $errorImageName === 'error' || $errorImageName === 'warning'} {assign var="type" value="danger"} {elseif $errorImageName === 'success'} {assign var="type" value="success"} {/if} {if $message || $hidden} {block name="alert_message_message"}
{$message|strip_tags|replace:" ":""}
{/block} {/if} {/block}